<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      >
    <h:head>
        <title>Cadastro de exerc&iacute;cio</title>
    </h:head>
    <h:body>
        Preencha os campos
        <ui:composition template="./face-professor.xhtml">



            <ui:define name="login"><h:outputText id="lblBemVindo" value="#{login.professor.nome}" /></ui:define>
            <ui:define name="content">
                <h:form>
                    <h:outputLabel id="lblNovo" value="Novo:"/>
                    <h:commandButton action="#{exercicioImplements.novo}" value="Novo"/>
                    <h:outputLabel id="lblId" value="Código:"/>
                    <h:inputText id="txtId" value="#{exercicioImplements.exercicio.id}" required="false" disabled="true">0</h:inputText>
                    <br/>
                    <h:outputLabel id="lblNome" value="Nome:"/>
                    <h:inputText id="txtNome" value="#{exercicioImplements.exercicio.nome}" required="true"/>
                    <br/>
                    <h:outputLabel id="lblDescricao" value="Descrição:"/>
                    <h:inputTextarea id="txtDescricao" value="#{exercicioImplements.exercicio.descricao}" required="true"/>
                    <br/>
                    <h:outputLabel id="lblMsg" value="#{exercicioImplements.msgSucesso}"/>
                    <br/>
                    <h:outputLabel id="lblSalvar" value="Clique para salvar:"/>
                    <h:commandButton action="#{exercicioImplements.salvar}" value="Salvar"/>
                </h:form>
            </ui:define>
        </ui:composition>


    </h:body>
</html>

